package com.ymk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ymk.base.BaseVO;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品-sku表
 * </p>
 *
 * @author 莫参商
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("goods_sku")
public class GoodsSku extends BaseVO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商户id
     */
    @TableField("mch_id")
    private Integer mchId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Integer goodsId;

    /**
     * 规格属性id
     */
    @TableField("prop_id")
    private String propId;

    /**
     * sku名称值
     */
    @TableField("prop_name")
    private String propName;

    /**
     * sku图片
     */
    @TableField("sku_image")
    private String skuImage;

    /**
     * 成本价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 销售价格
     */
    @TableField("sale_price")
    private BigDecimal salePrice;

    /**
     * 销售数量
     */
    @TableField("sales_volume")
    private Integer salesVolume;

    /**
     * 库存数
     */
    @TableField("stock")
    private Integer stock;

    /**
     * 锁定库存
     */
    @TableField("lock_stock")
    private Integer lockStock;

    /**
     * 库存警戒线
     */
    @TableField("stock_warning_line")
    private Integer stockWarningLine;

    /**
     * 状态
     */
    @TableField("status")
    private String status;


}
